<%--
  Created by IntelliJ IDEA.
  User: Onlyevan
  Date: 2017/9/16
  Time: 10:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>updateCategory</title>
</head>
<body>
    <form method="post" action="../categories/{category.id}">
        <table align="center" cellspacing="0" border="1" width="10%">
            <tr>
                <td>id</td>
                <td>name</td>
            </tr>
            <tr>
                <td>${category.id}
                    <input type="hidden" value="${category.id}" name="id" />
                </td>
                <td><input type="text" value="${category.name}" name="name" /></td>
            </tr>
        </table>
        <input type="hidden" name="_method" value="PUT"/>
        <div align="center"><input type="submit" value="提交" /></div>
    </form>
</body>
</html>
